package com.my12306.third.config;

import com.my12306.third.constant.SmsConstants;
import com.tencentcloudapi.common.Credential;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:苏牧夕
 * @Date:2020/5/14 12:21
 * @Version 1.0
 */
@Configuration
public class SmsConfig {

    @Bean
    public Credential getCredential() {
        Credential cred = new Credential(SmsConstants.SECRET_ID, SmsConstants.SECRET_Key);
        return cred;
    }
}
